<include file="Common:layout" />
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default;">
<div style="margin: 20px 0 0 20px;">
    <volist name="data" id="vo">
        <p style="height: 25px;">{$vo['context']}<span style="color: red;"> {$vo['time']}</span></p>
    </volist>
</div>
<script type="text/javascript">
    $(function() {
        $('.btn').click(function() {
            $.ajax({
                url: "{:U('Express/query')}",
                type: 'post',
                data: {
                    'order_id': $('#order_id').val()
                },
                success: function(data) {
                    $('#content').html('');
                    if (data == -1) {
                        $('#content').append('<p style="line-height: 30px;color: red;">请查看快递号是否填写正确!</p>');
                    } else {
                      $.each(data, function(n, value){
                        $('#content').append('<p style="line-height: 30px;color: red;">'+value.context+'<span style="color:green;"> '+value.time+'</span>'+'</p>');
                      })
                    }
                }
            });
        });
    });
</script>
</body>
</html>